package com.zl.websocket.entity;

import java.security.Principal;

public class WebsocketUser implements Principal {
	
	private UserInfo user;

	public WebsocketUser(UserInfo user) {
		this.user = user;
	}

	public WebsocketUser() {
	}

	@Override
	public String getName() {
		return user.getId();
	}

	public UserInfo getUser() {
		return user;
	}

	public void setUser(UserInfo user) {
		this.user = user;
	}

}